<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>快照的生命周期管理设置 | ElasticSearch 7.7 权威指南中文版</title>
	<meta name="keywords" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <meta name="description" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <!-- Give IE8 a fighting chance -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/styles.css" />
	<script>
	var _link = 'slm-settings.html';
    </script>
</head>
<body>
<div class="main-container">
    <section id="content">
        <div class="content-wrapper">
            <section id="guide" lang="zh_cn">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-8 col-md-8 guide-section">
                            <div style="color:gray; word-break: break-all; font-size:12px;">原英文版地址: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.7/slm-settings.html" rel="nofollow" target="_blank">https://www.elastic.co/guide/en/elasticsearch/reference/7.7/slm-settings.html</a>, 原文档版权归 www.elastic.co 所有<br/>本地英文版地址: <a href="../en/slm-settings.html" rel="nofollow" target="_blank">../en/slm-settings.html</a></div>
                        <!-- start body -->
                  <div class="page_header">
<strong>重要</strong>: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow">当前版本文档</a>。
</div>
<div id="content">
<div class="breadcrumbs">
<span class="breadcrumb-link"><a href="index.html">Elasticsearch 权威指南 [7.7]</a></span>
»
<span class="breadcrumb-link"><a href="setup.html">安装和设置</a></span>
»
<span class="breadcrumb-link"><a href="settings.html">配置 Elasticsearch</a></span>
»
<span class="breadcrumb-node">快照的生命周期管理设置</span>
</div>
<div class="navheader">
<span class="prev">
<a href="shard-request-cache.html">« 分片的请求缓存设置</a>
</span>
<span class="next">
<a href="sql-settings.html">SQL访问设置 »</a>
</span>
</div>
<div class="section xpack">
<div class="titlepage"><div><div>
<h2 class="title">
<a id="slm-settings"></a>快照的生命周期管理设置
</h2>
</div></div></div>

<p>
这些是可用于配置 <a class="xref" href="snapshot-lifecycle-management.html" title="SLM: Manage the snapshot lifecycle">快照生命周期管理 (SLM, snapshot lifecycle management)</a> 的设置。
</p>
<div class="section">
<div class="titlepage"><div><div>
<h3 class="title">
<a id="_cluster_level_settings_2"></a>集群级别的设置
</h3>
</div></div></div>
<div class="variablelist">
<a id="slm-history-index-enabled"></a>
<dl class="variablelist">
<dt>
<span class="term">
<code class="literal">slm.history_index_enabled</code>
</span>
</dt>
<dd>
(boolean)
控制 SLM 是否将作为 SLM 策略的一部分所采取的动作的历史记录到<code class="literal"> SLM -history-*</code>索引。
默认值为 <code class="literal">true</code>。
</dd>
</dl>
</div>
<div class="variablelist">
<a id="slm-retention-schedule"></a>
<dl class="variablelist">
<dt>
<span class="term">
<code class="literal">slm.retention_schedule</code>
</span>
</dt>
<dd>
(<a class="xref" href="cluster-update-settings.html" title="Cluster update settings API">动态的</a>, <a class="xref" href="trigger-schedule.html#schedule-cron" title="Cron schedule">cron scheduler value</a>)
控制 <a class="xref" href="slm-retention.html" title="Snapshot retention">保留任务(retention task)</a> 的何时运行。
可以是周期性的或绝对的时间计划。
支持 <a class="xref" href="trigger-schedule.html#schedule-cron" title="Cron schedule">cron scheduler</a> 支持的所有值。
默认为 UTC 时间每天凌晨1:30 ：<code class="literal">0 30 1 * * ?</code>.
</dd>
</dl>
</div>
<div class="variablelist">
<a id="slm-retention-duration"></a>
<dl class="variablelist">
<dt>
<span class="term">
<code class="literal">slm.retention_duration</code>
</span>
</dt>
<dd>
(<a class="xref" href="cluster-update-settings.html" title="Cluster update settings API">动态的</a>, <a class="xref" href="common-options.html#time-units" title="Time units">time value</a>)
限制 SLM 应该花费多长时间删除旧快照。默认为一小时： <code class="literal">1h</code>.
</dd>
</dl>
</div>
</div>

</div>
<div class="navfooter">
<span class="prev">
<a href="shard-request-cache.html">« 分片的请求缓存设置</a>
</span>
<span class="next">
<a href="sql-settings.html">SQL访问设置 »</a>
</span>
</div>
</div>

                  <!-- end body -->
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4" id="right_col">
                        
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </section>
</div>
<script src="../static/cn.js"></script>
</body>
</html>